package cqrtplm.mapper;

import cqrtplm.entity.OnlineAnnotationDO;
import cqrtplm.info.OnlineAnnotationInfo;
import cqrtplm.vo.OnlineAnnotationVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

@Repository
public interface OnlineAnnotationMapper extends BaseMapper<OnlineAnnotationDO> {
    List<OnlineAnnotationVO> selectByAOid(String aoid);

    List<OnlineAnnotationDO> selectByOidS(@Param("oids") List<String> oidS);

    void deleteByObjId(String objId);

    List<OnlineAnnotationVO> selectByOid(@Param("oid") String oid);

    List<OnlineAnnotationInfo> selectByFileInfoByGuid(@Param("oid") String guid);

    List<String> selectOidByObjOid(@Param("oid") String oid);

    void deleteFileLikeByOid(@Param("oid") String oid);
}
